package queue;

public class Test1 {
    public static void test1(){
        MyQueueByArray queue = new MyQueueByArray();
        queue.offer("5");
        queue.offer("4");
        queue.offer("0");
        queue.offer("9");
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());
        System.out.println(queue.poll());
    }
    public static void main(String[] args) {
        test1();
    }
}
